package main.FileVisitors;

import java.nio.file.FileVisitor;
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public abstract class MyFileVisitor implements FileVisitor<Path> {

    protected String lookFor = "";
    protected List<Path> matches = Collections.synchronizedList(new ArrayList<Path>());

    /**
     * @return the files
     */
    public abstract int getFiles();

    /**
     * @return the folders
     */
    public abstract int getFolders();

    /**
     * @return the totalSize
     */
    public abstract long getTotalSize();

    /**
     * @return the matches
     */
    public List<Path> getMatches(){
        return matches;
    };

    /**
     * @return the lookFor
     */
    public String getLookFor(){
        return lookFor;
    };
}
